package com.pitaya.framework.common;

public enum ErrorInfo {
	
	ISEXIST_WINE("isexist.wine", "该红酒信息已存在"),
	ISEXIST_VINTRY("isexist.vintry", "该酒管家信息已存在"),
	INVALID_UPLOAD_FORMAT("invalid.upload.format", "上传图片格式不合法，请上传jpg或png格式图片"),
	INVALID_UPLOAD_SIZE("invalid.upload.size", "上传图片大小不合法，请上传不大于1MB的图片");
	
	private String code;
	private String msg;
	
	private ErrorInfo(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public String getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}
	
}
